package Book;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: dell
 * Date: 2023-11-29
 * Time: 17:58
 */
public class booklist {
    private book[] Booklist=new book[10];
    private int booksize;

    public booklist(){
        Booklist[0]=new book("三国演义","罗",13,"小说");
        Booklist[1]=new book("西游记","吴",16,"小说");
        Booklist[2]=new book("水浒传","施",15,"小说");
        this.booksize=3;
    }

    public int getBooksize() {
        return booksize;
    }

    public void setBooksize(int booksize) {
        this.booksize = booksize;
    }
    public book getBook(int pos){
        return Booklist[pos];
    }
    public  void setterBook(int pos,book BOOK){
        Booklist[pos]=BOOK;
    }
}